﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class DMHINHTHUCTHANHTOAN : BusinessObject
    {
        /// <summary>
        /// Gets or sets unique MaHinhThucThanhToan identifier.
        /// The Identity Field Design Pattern. 
        /// </summary>
        public int MaHinhThucThanhToan { get; set; }
        public string TenHinhThucThanhToan { get; set; }
        public bool? IsUse { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }


        /// <summary>
        /// Default constructor for DMHINHTHUCTHANHTOAN class.
        /// Initializes automatic properties.   
        /// </summary>
        public DMHINHTHUCTHANHTOAN()
        {
            // Business rules
            AddRule(new ValidateRequired("TenHinhThucThanhToan"));
            AddRule(new ValidateLength("TenHinhThucThanhToan", 1, 40));

        }

        /// <summary>
        /// Overloaded constructor for the DMHINHTHUCTHANHTOAN class.
        /// </summary>
        /// <param name="customerId">Unique Identifier for the DMHINHTHUCTHANHTOAN.</param>
        /// <param name="company">Name of the DMHINHTHUCTHANHTOAN.</param>
        /// <param name="city">City where DMHINHTHUCTHANHTOAN is located.</param>
        /// <param name="country">Country where DMHINHTHUCTHANHTOAN is located.</param>
        public DMHINHTHUCTHANHTOAN(int maHinhThucThanhToan, string tenHinhThucThanhToan, bool? inUse, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            : this()
        {
            MaHinhThucThanhToan = maHinhThucThanhToan;
            TenHinhThucThanhToan = tenHinhThucThanhToan;
            IsUse = inUse;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }
    }
}
